﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="NewsDetail.aspx.cs" Inherits="CJJCH.Web.NewsDetail" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>
        <asp:Literal ID="Literal1" runat="server"></asp:Literal></title>
    <link href="Style/newcss.css" rel="stylesheet" type="text/css" />
 <script type="text/javascript">
     function maximizeWin() {
    
         if (window.screen) {
             var aw = screen.availWidth;
             var ah = screen.availHeight;
             window.moveTo(0, 0);
             window.resizeTo(aw, ah);
         }
     }   

  
</script>
</head>
<body onload="maximizeWin();"> 

    <form id="form1" runat="server">
    <div class="MainContain">
        <!--Top start-->
        <uc:Top ID="top" runat="server" />
        <!--Search end-->
        <!--Body Start-->
        <div class="SubBody">
            <div id="divHidden" runat="server" style="display: none">
                <asp:Label ID="lblCurpage" runat="server"></asp:Label>
                <asp:Label ID="lblIndex" runat="server"></asp:Label>
                <asp:Label ID="lblFirstID" runat="server"></asp:Label>
                <asp:Label ID="lblSecondID" runat="server"></asp:Label>
                <asp:Label ID="lblThirdID" runat="server"></asp:Label>
            </div>
            <!--News content-->
            <div class="Newshead">
                您当前位置：<asp:HyperLink ID="lnkFirst" runat="server" CssClass="Linkf12"></asp:HyperLink>
                〉<asp:HyperLink ID="lnkLast" runat="server" CssClass="Linkf12"></asp:HyperLink>
                〉<asp:Label ID="lblTitle1" runat="server"></asp:Label></div>
            <div class="Newscon">
                <h3>
                    <asp:Label ID="lblTitle" runat="server"></asp:Label></h3>
                <div class="subtit">
                    来源：<asp:Label ID="lblDataSource" runat="server"></asp:Label>
                    &nbsp;&nbsp; 阅读次数：<asp:Label ID="lblHits" runat="server"></asp:Label>次 &nbsp;&nbsp;
                    时间：<asp:Label ID="lblPlusDate" runat="server"></asp:Label></div>
                <div class="subtit">
                    <ul>
                        <li>
                            <img src="Image/Newsicon1.gif" />&nbsp; <a href="javascript:void(0);" onclick='myAddBookmark(document.title,document.URL)'
                                class="Linkf12">收藏此文</a>&nbsp; </li>
                        <li>
                            <img src="Image/Newsicon2.gif" />&nbsp;<a href="javascript:void(0);" onclick="copyLink()"
                                class="Linkf12">复制链接</a>&nbsp; </li>
                        <li>
                            <img src="Image/Newsicon3.gif" />&nbsp;<a href="javascript:void(0);" onclick='print();'
                                class="Linkf12">打印</a>&nbsp; </li>
                        <li>
                            <img src="Image/Newsicon4.gif" />&nbsp;<a href="javascript:void(0);" onclick='ChangeSize(24)'
                                class="Linkf12">大</a> &nbsp;<a href="javascript:void(0);" onclick='ChangeSize(16)'
                                    class="Linkf12">中</a> &nbsp;<a href="javascript:void(0);" onclick='ChangeSize(11)'
                                        class="Linkf12">小</a> </li>
                    </ul>
                </div>
                <div class="subc" id="divDataNote" runat="server">
                </div>
            </div>
            <!--BodyRight end-->
        </div>
        <!--Body end-->
    </div>
    <!--MainFooter Start-->
    <uc:Footer ID="Footer" runat="server" />
    <!--MainFooter end-->
    </form>
</body>
</html>
<script type="text/javascript"> 
<!--
    function myAddBookmark(title, url) {
        if ((typeof window.sidebar == 'object') && (typeof window.sidebar.addPanel == 'function'))//Gecko
        {
            window.sidebar.addPanel(title, url, "");
        }
        else//IE
        {
            window.external.AddFavorite(url, title);
        }
    }
    //-->
    function ChangeSize(size) {
        try {
            document.getElementById("divDataNote").style.fontSize = size + "px";
        }
        catch (e) { }
    }
    function copyLink() {
        try {
            var cText = document.location.toString();
 
            if (window.clipboardData) {
                window.clipboardData.setData("Text", cText);             
            } else if (window.netscape) {
                try {
                    netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
                } catch (e) {
                    alert("您的浏览器设置为不允许复制！\n如果需要此操作，请在浏览器地址栏输入'about:config'并回车\n然后将'signed.applets.codebase_principal_support'设置为'true',再重试复制操作!");
                    return false;
                }
                var clip = Components.classes['@mozilla.org/widget/clipboard;1'].createInstance(Components.interfaces.nsIClipboard);
                if (!clip)
                    return;
                var trans = Components.classes['@mozilla.org/widget/transferable;1'].createInstance(Components.interfaces.nsITransferable);
                if (!trans) {
                    return;
                }
                trans.addDataFlavor('text/unicode');
                var str = new Object();
                var len = new Object();
                var str = Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString);

                str.data = cText;
                trans.setTransferData("text/unicode", str, cText.length * 2);
                var clipid = Components.interfaces.nsIClipboard;
                if (!clip)
                    return false;
                clip.setData(trans, null, clipid.kGlobalClipboard);
                alert("复制完成!");
            }
        } catch (e) { }
    }
</script>
